﻿@model MvcJE.Core.Inet.MopModule
@{
    ViewBag.Title = "Edit";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>MOP Template Library</legend>
        <p>
            <input type="submit" name="submit" id="submit1" value="Save" />
        </p>
        @Html.HiddenFor(model => model.MopModuleId)
        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MopModuleGroupId, "Category")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MopModuleGroupId", String.Empty)
            @Html.ValidationMessageFor(model => model.MopModuleGroupId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Notes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Notes)
            @Html.ValidationMessageFor(model => model.Notes)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedBy)
            @Html.ValidationMessageFor(model => model.CreatedBy)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Template)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Template, new { style = "width:800px;height:640px;font-size:95%" })
            @Html.ValidationMessageFor(model => model.Template)
        </div>
        <div style="display: none">
            <div class="editor-label">
                @Html.LabelFor(model => model.Attributes)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Attributes)
                @Html.ValidationMessageFor(model => model.Attributes)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateCreated)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateCreated)
                @Html.ValidationMessageFor(model => model.DateCreated)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.DateUpdated)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateUpdated)
                @Html.ValidationMessageFor(model => model.DateUpdated)
            </div>
        </div>
        <p>
            <input type="submit" name="submit" id="submit3" value="Save" />
        </p>
    </fieldset>
 
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
